package com.zdkj.subway.rca.feign;

import com.zdkj.common.core.constant.SecurityConstants;
import com.zdkj.common.core.constant.ServiceNameConstants;
import com.zdkj.common.core.util.R;
import com.zdkj.subway.rca.entity.SwMessage;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

/**
 * @author cooze
 * @version 1.0.0 创建于 2020/11/1
 * @deprecated 辅助功能管理接口类
 **/
@FeignClient(contextId = "subwaySupportService", value = ServiceNameConstants.SUPPORT_SERVICE)
public interface SubwaySupportService {
    /**
     * 发送待办
     * @param swMessage
     * @param from
     * @return
     */
	@PostMapping("/swmessage/inner")
    R saveInner(@RequestBody SwMessage swMessage, @RequestHeader(SecurityConstants.FROM) String from);

    /**
     * 通过code查询线路名称
     * @param code
     * @return
     */
    @GetMapping("/swparamline/name/byCode/{code}")
    R<String> getLineNameByCode(@PathVariable("code") String code);
}
